package com.example.demoredisspringboot.exception;

/**
 * <b><code>ServiceException</code></b>
 * <p>
 * Description
 * <p>
 * <b>Create Time:</b> 2022/5/18 9:26.
 *
 * @author qd.yt
 * @version 0.0.1
 * @since demo-redis-springboot v0.0.1
 */
public class ServiceException extends RuntimeException{
    private static final long serialVersionUID = 1L;

    protected final String message;

    public ServiceException(String message) {
        this.message = message;
    }

    public ServiceException(String message, Throwable e) {
        super(message, e);
        this.message = message;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
